{{define "common_left"}}
<div class="page-body">
    <div class="left-sidebar">
        <div class="left-sidebar-header">
            <div class="left-sidebar-title">导航</div>
            <div class="left-sidebar-toggle c-hamburger c-hamburger--htla hidden-xs" data-toggle-class="left-sidebar-collapsed" data-target="html">
                <span></span>
            </div>
        </div>
        <div id="left-nav" class="nano">
            <div class="nano-content">
                <nav>
                    <ul class="nav" id="main-nav">
                        <li><a href="flush"><i class="fa fa-refresh" aria-hidden="true"></i><span>刷新任务</span></a></li>
                        <li class="has-child-item open-item active-item">
                            <a><i class="fa fa-home" aria-hidden="true"></i><span>任务管理</span></a>
                            <ul class="nav child-nav level-1">
                                <li {{- if eq .action "list" }} class="active-item" {{- end}}><a href="list">任务列表</a></li>
                                <li {{- if eq .action "add" }} class="active-item" {{- end}}><a href="add">添加任务</a></li>
                            </ul>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>
    </div>
{{end}}